package com.example.springcloudwinter.mapper;

import com.example.springcloudwinter.bo.FoodBo;
import com.example.springcloudwinter.entity.po.FoodPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.sql.SQLException;
import java.util.List;

@Mapper
public interface FoodMapper {
    @Select("SELECT foodId,businessId,foodPrice,foodName,foodExplain,foodImg,remarks FROM food WHERE businessId=#{businessId}")
    List<FoodPo> listFoodByBusinessId(@Param("businessId")int businessId)throws SQLException;
}
